#!/usr/bin/python3

def countVowels(line):
    vowelNum = 0
    line = str.lower(line)
    for ch in line:
        if(ch == 'a' or ch=='e' or ch=='i' or ch=='u' or ch=='o'):
            vowelNum += 1
    print(vowelNum)

line = input('Please enter a line, # to end:\n')
while line != '#':
    countVowels(line)
    line = input('Please enter a line, # to end:\n')